"""
@author: xyl
@file: zuoye.py
@time: 2022/12/12 19:59
"""
s = 'asdf234GDSdsf23'
print("".join(sorted(s, key=lambda x: (x.isdigit(), x.isdigit() and int(x)%2==0, x.isupper(),x))))

from functools import reduce
print(reduce(lambda x,y:x*y,range(1,10)))

print(list(filter(lambda x:x % 3 == 0,range(1,101))))

print(list(map(lambda x:x*x,range(1,11))))

print(reduce(lambda x,y:str(x)+str(y),[1,4,5,9]))